package fun.barryhome.ebean.model;

import io.ebean.annotation.History;
import io.ebean.annotation.HistoryExclude;
import lombok.*;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created on 2021/6/6 3:05 下午
 *
 * @author barry
 * Description:
 */
@History
@Builder
@Data
@Entity
@ToString(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "customer")
public class Customer extends BaseModel {

    public static final CustomerFinder find = new CustomerFinder();

    private String name;


    @HistoryExclude
    private Integer age;

}
